package com.kma.ncpractice2013.dao;

import java.sql.Connection;

/**
 *
 * @author Illya
 */
public class DAOFactory
{
    private static DAOFactory instance;
    
    static
    {
        instance = new DAOFactory();
    }
    
    private DAOFactory()
    {
        
    }
    
    public DAOFactory getInstance()
    {
        return instance;
    }
    
    public Connection getConnection()
    {
        // TODO
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    public UserDAO getUserDAO()
    {
        return new UserDAO();
    }
    
    public LocationDAO getLocationDAO()
    {
        return new LocationDAO();
    }
    
//    public OrderDAO getOrderDAO()
//    {
//        return new OrderDAO();
//    }
    
    public PromoCodeDAO getPromoCodeDAO()
    {
        return new PromoCodeDAO();
    }
    
    public PromoCodeTypeDAO getPromoCodeTypeDAO()
    {
        return new PromoCodeTypeDAO();
    }
    
    // etc...
}
